package com.example.scaffold_demo.mvp.di.user.bean;

import java.util.ArrayList;

/**
 * Author: 李巷阳
 * Date: 2019/6/26
 * Version: V1.8.2
 * Part:
 * Description:
 */
public class WelfareHomeUserBean {

    /**
     * {
     * "invite_code" : "FW1231", //邀请码
     * "gold" : 1, //我的金币数量
     * "today_gold" : 1, //今日金币数量
     * "invited_num" : 2, //已邀请好友数量
     * "total_gold": 3033, // 获得总金币
     * "invite_gold": 1111, // 邀请获得的金币
     * "is_invited": 0,  0 未被邀请 1 被邀请
     * "invite_info": {  // 邀请人信息
     * "moego_code": "4321432",
     * "avatar": "http://",
     * "nickname": "哈哈",
     * "created_at": 432143214 // 邀请时间
     * },
     * "invitation_rules": [  //邀请好友页邀请规则
     * "注册成功后的10天内可输入邀请码，超过10天则不能输入",
     * "被邀请账号需绑定手机号",
     * "一个用户只能被邀请一次，同一手机号、同一萌股号、同一设备均视为一个用户",
     * "为保证广大萌友的利益不被影响对于非正常邀请的用户平台将取消参与活动的资格并扣除相应的奖励不予结算。"
     * ]
     * }
     */

    private String invite_code; //邀请码
    private String gold;//我的金币数量
    private String today_gold;//今日金币数量
    private String invited_num;//已邀好友数量
    private String total_gold; //累积金币
    private String is_invited;//是否被邀请
    private ArrayList<String> invitation_rules;
    private InviteInfo invite_info;//邀请人信息
    private String invited_gold; //邀请获得的金币数
    private String invited_per_gold;//邀请一个人可获得的金币数
    private String welfare_switch;//福利社入口开关，0表示关闭，1表示开启
    private String error_type;
    private ErrorInfoBean error_info;

    public String getError_type() {
        return error_type;
    }

    public void setError_type(String error_type) {
        this.error_type = error_type;
    }

    public ErrorInfoBean getError_info() {
        return error_info;
    }

    public void setError_info(ErrorInfoBean error_info) {
        this.error_info = error_info;
    }

    public String getWelfare_switch() {
        return welfare_switch;
    }

    public void setWelfare_switch(String welfare_switch) {
        this.welfare_switch = welfare_switch;
    }

    public String getInvited_per_gold() {
        return invited_per_gold;
    }

    public void setInvited_per_gold(String invited_per_gold) {
        this.invited_per_gold = invited_per_gold;
    }

    public String getInvited_gold() {
        return invited_gold;
    }

    public void setInvited_gold(String invited_gold) {
        this.invited_gold = invited_gold;
    }

    public String getTotal_gold() {
        return total_gold;
    }


    public String getIs_invited() {
        return is_invited;
    }

    public void setIs_invited(String is_invited) {
        this.is_invited = is_invited;
    }

    public InviteInfo getInvite_info() {
        return invite_info;
    }

    public void setInvite_info(InviteInfo invite_info) {
        this.invite_info = invite_info;
    }

    public void setTotal_gold(String total_gold) {
        this.total_gold = total_gold;
    }

    public String getInvite_code() {
        return invite_code;
    }

    public void setInvite_code(String invite_code) {
        this.invite_code = invite_code;
    }

    public String getGold() {
        return gold;
    }

    public void setGold(String gold) {
        this.gold = gold;
    }

    public String getToday_gold() {
        return today_gold;
    }

    public void setToday_gold(String today_gold) {
        this.today_gold = today_gold;
    }

    public String getInvited_num() {
        return invited_num;
    }

    public void setInvited_num(String invited_num) {
        this.invited_num = invited_num;
    }

    public ArrayList<String> getInvitation_rules() {
        return invitation_rules;
    }

    public void setInvitation_rules(ArrayList<String> invitation_rules) {
        this.invitation_rules = invitation_rules;
    }

    public static class InviteInfo {
        /**
         * {  // 邀请人信息
         * "moego_code": "4321432",
         * "avatar": "http://",
         * "nickname": "哈哈",
         * "created_at": 432143214 // 邀请时间
         * }
         */
        private String moego_code;
        private String avatar;
        private String nickname;
        private String created_at;


        public String getMoego_code() {
            return moego_code;
        }

        public void setMoego_code(String moego_code) {
            this.moego_code = moego_code;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }
    }

    public static class ErrorInfoBean {
        /**
         * expired_at : 1732432432
         * comment : 涉黄呗拉黑
         */

        private int expired_at;
        private String comment;

        public int getExpired_at() {
            return expired_at;
        }

        public void setExpired_at(int expired_at) {
            this.expired_at = expired_at;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }
    }

    @Override
    public String toString() {
        return "WelfareHomeUserBean{" +
                "invite_code='" + invite_code + '\'' +
                ", gold='" + gold + '\'' +
                ", today_gold='" + today_gold + '\'' +
                ", invited_num='" + invited_num + '\'' +
                ", total_gold='" + total_gold + '\'' +
                ", is_invited='" + is_invited + '\'' +
                ", invitation_rules=" + invitation_rules +
                ", invite_info=" + invite_info +
                ", invited_gold='" + invited_gold + '\'' +
                ", invited_per_gold='" + invited_per_gold + '\'' +
                ", welfare_switch='" + welfare_switch + '\'' +
                ", error_type='" + error_type + '\'' +
                ", error_info=" + error_info +
                '}';
    }
}
